package com.cyk.validation.api;


import com.cyk.validation.model.UserInfo;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping("/user")
public class UserApi {

    @RequestMapping
    public String test(
            @RequestBody @Valid UserInfo userInfo
    ) {
        return "ok";
    }

}
